﻿namespace WebApiSampleTemplate.Extensions.Utils
{
    /// <summary>
    /// 字符串扩展方法
    /// </summary>
    public static class StringExtensions
    {
        /// <summary>
        /// 空字符串判断
        /// </summary>
        public static bool IsEmpty(this string inputString)
        {
            return string.IsNullOrWhiteSpace(inputString);
        }

        public static bool HasValue(this string inputString)
        {
            return !IsEmpty(inputString);
        }
    }
}
